<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: Slic3r::ConfigOptionEnumGeneric Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_slic3r.html">Slic3r</a></li><li class="navelem"><a class="el" href="class_slic3r_1_1_config_option_enum_generic.html">ConfigOptionEnumGeneric</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_slic3r_1_1_config_option_enum_generic-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Slic3r::ConfigOptionEnumGeneric Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Generic enum configuration value.  
 <a href="class_slic3r_1_1_config_option_enum_generic.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_config_8hpp_source.html">Config.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Slic3r::ConfigOptionEnumGeneric:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_slic3r_1_1_config_option_enum_generic.png" usemap="#Slic3r::ConfigOptionEnumGeneric_map" alt=""/>
  <map id="Slic3r::ConfigOptionEnumGeneric_map" name="Slic3r::ConfigOptionEnumGeneric_map">
<area href="class_slic3r_1_1_config_option_int.html" alt="Slic3r::ConfigOptionInt" shape="rect" coords="0,112,201,136"/>
<area href="class_slic3r_1_1_config_option_single.html" alt="Slic3r::ConfigOptionSingle&lt; int &gt;" shape="rect" coords="0,56,201,80"/>
<area href="class_slic3r_1_1_config_option.html" title="Public interface for configuration options. " alt="Slic3r::ConfigOption" shape="rect" coords="0,0,201,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab188c5201b9b43a47e048a6301be9988"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_enum_generic.html#ab188c5201b9b43a47e048a6301be9988">serialize</a> () const</td></tr>
<tr class="separator:ab188c5201b9b43a47e048a6301be9988"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7790326640ad952154c80da6a504ce6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_enum_generic.html#ab7790326640ad952154c80da6a504ce6">deserialize</a> (std::string str, bool append=false)</td></tr>
<tr class="separator:ab7790326640ad952154c80da6a504ce6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_slic3r_1_1_config_option_int"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_slic3r_1_1_config_option_int')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_slic3r_1_1_config_option_int.html">Slic3r::ConfigOptionInt</a></td></tr>
<tr class="memitem:ac2645e976fb0406b489b734386536ddb inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_int.html#ac2645e976fb0406b489b734386536ddb">ConfigOptionInt</a> ()</td></tr>
<tr class="separator:ac2645e976fb0406b489b734386536ddb inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36dc035f37d131006f5a50e0c134b585 inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_int.html#a36dc035f37d131006f5a50e0c134b585">ConfigOptionInt</a> (double _value)</td></tr>
<tr class="separator:a36dc035f37d131006f5a50e0c134b585 inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfaf26add217268ecbbb281e6d9ead7d inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_config_option_int.html">ConfigOptionInt</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_int.html#adfaf26add217268ecbbb281e6d9ead7d">clone</a> () const</td></tr>
<tr class="separator:adfaf26add217268ecbbb281e6d9ead7d inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45aee46f54b11cc1c473bf5fcde6d883 inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_int.html#a45aee46f54b11cc1c473bf5fcde6d883">getInt</a> () const</td></tr>
<tr class="separator:a45aee46f54b11cc1c473bf5fcde6d883 inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af106fd960247998c676ec9af2ddc6242 inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_int.html#af106fd960247998c676ec9af2ddc6242">setInt</a> (int val)</td></tr>
<tr class="separator:af106fd960247998c676ec9af2ddc6242 inherit pub_methods_class_slic3r_1_1_config_option_int"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_slic3r_1_1_config_option_single"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_slic3r_1_1_config_option_single')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_slic3r_1_1_config_option_single.html">Slic3r::ConfigOptionSingle&lt; int &gt;</a></td></tr>
<tr class="memitem:a0695c42c9db732034645500f913568c1 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#a0695c42c9db732034645500f913568c1">ConfigOptionSingle</a> (int _value)</td></tr>
<tr class="separator:a0695c42c9db732034645500f913568c1 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69377b73a601a27817b11d924615a106 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#a69377b73a601a27817b11d924615a106">operator int</a> () const</td></tr>
<tr class="separator:a69377b73a601a27817b11d924615a106 inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01c6047317fc347e69da03e62cb5770d inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#a01c6047317fc347e69da03e62cb5770d">set</a> (const <a class="el" href="class_slic3r_1_1_config_option.html">ConfigOption</a> &amp;option)</td></tr>
<tr class="separator:a01c6047317fc347e69da03e62cb5770d inherit pub_methods_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_slic3r_1_1_config_option"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_slic3r_1_1_config_option')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_slic3r_1_1_config_option.html">Slic3r::ConfigOption</a></td></tr>
<tr class="memitem:a115b29c0449d421d63c1b5d905431f6e inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a115b29c0449d421d63c1b5d905431f6e">~ConfigOption</a> ()</td></tr>
<tr class="separator:a115b29c0449d421d63c1b5d905431f6e inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a465b2573ca6f4f4bc47dc805114ae977 inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a465b2573ca6f4f4bc47dc805114ae977">getFloat</a> () const</td></tr>
<tr class="separator:a465b2573ca6f4f4bc47dc805114ae977 inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78800592be78a66830a85da7f382d13c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a78800592be78a66830a85da7f382d13c">getBool</a> () const</td></tr>
<tr class="separator:a78800592be78a66830a85da7f382d13c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8555c22bc73e825ef51d62672d0ff88c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option.html#a8555c22bc73e825ef51d62672d0ff88c">getString</a> () const</td></tr>
<tr class="separator:a8555c22bc73e825ef51d62672d0ff88c inherit pub_methods_class_slic3r_1_1_config_option"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad5a2b5ae10a4963b87d7c39475a58a24"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespace_slic3r.html#ac75002536c668dbfd08a4a03960e9a0e">t_config_enum_values</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_enum_generic.html#ad5a2b5ae10a4963b87d7c39475a58a24">keys_map</a></td></tr>
<tr class="separator:ad5a2b5ae10a4963b87d7c39475a58a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_class_slic3r_1_1_config_option_single"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_slic3r_1_1_config_option_single')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_slic3r_1_1_config_option_single.html">Slic3r::ConfigOptionSingle&lt; int &gt;</a></td></tr>
<tr class="memitem:abaf8fe497afac1ad5e72a6f83751ee0a inherit pub_attribs_class_slic3r_1_1_config_option_single"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_config_option_single.html#abaf8fe497afac1ad5e72a6f83751ee0a">value</a></td></tr>
<tr class="separator:abaf8fe497afac1ad5e72a6f83751ee0a inherit pub_attribs_class_slic3r_1_1_config_option_single"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Generic enum configuration value. </p>
<p>We use this one in <a class="el" href="class_slic3r_1_1_dynamic_config.html">DynamicConfig</a> objects when creating a config value object for ConfigOptionType == coEnum. In the <a class="el" href="class_slic3r_1_1_static_config.html">StaticConfig</a>, it is better to use the specialized ConfigOptionEnum&lt;T&gt; containers. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab7790326640ad952154c80da6a504ce6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7790326640ad952154c80da6a504ce6">&#9670;&nbsp;</a></span>deserialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::ConfigOptionEnumGeneric::deserialize </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>append</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="class_slic3r_1_1_config_option_int.html#a7fcaa0a0e537a9c96e44e10f935572aa">Slic3r::ConfigOptionInt</a>.</p>

</div>
</div>
<a id="ab188c5201b9b43a47e048a6301be9988"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab188c5201b9b43a47e048a6301be9988">&#9670;&nbsp;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string Slic3r::ConfigOptionEnumGeneric::serialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reimplemented from <a class="el" href="class_slic3r_1_1_config_option_int.html#a4ac102e93917aadd150c052255e52eb4">Slic3r::ConfigOptionInt</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ad5a2b5ae10a4963b87d7c39475a58a24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5a2b5ae10a4963b87d7c39475a58a24">&#9670;&nbsp;</a></span>keys_map</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespace_slic3r.html#ac75002536c668dbfd08a4a03960e9a0e">t_config_enum_values</a>* Slic3r::ConfigOptionEnumGeneric::keys_map</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/libslic3r/<a class="el" href="_config_8hpp_source.html">Config.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
